package com.youlai.common.base;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 基础分页请求对象
 *
 * @author haoxr
 * @since 2021/2/28
 */
@Data
@Schema
public class BasePageQuery {

    @Schema(description = "页码", required = true, example = "1")
    private Integer pageNum = 1;

    @Schema(description = "每页记录数", required = true, example = "10")
    private Integer pageSize = 10;

    @Schema(description="更新时间-结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String startUpdateTime;

    @Schema(description="更新时间-结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String endUpdateTime;
}
